import request from "./http";

// 所有电影数据
export const movieList = (data) => {
  return request({
    url:'/movies/list',
    method: 'get',
    params: data
  })
}
// 单条电影数据
export const movieDetail = (id, data) => {
  return request({
    url: '/movies/subject/'+id,
    method: 'get',
    params: data
  })
}

// 正在热映
export const reqNowPlaying = (data) => {
  return request({
    url: '/movies/nowplaying',
    method: 'get',
    params: data,
  })
}
